var res = {
    chess0:"res/images/chess0.png",
    homebg:"res/images/bg.png",
    btnrule:"res/images/btn_rule.png",
    btnstart:"res/images/btn_start.png",
    gamebg:"res/images/game_bg.png",
    btnrestart:"res/images/btn_restart.png",
    chess1:"res/images/chess1.png",
    chessbg:"res/images/chess_bg.png",
    ice:"res/images/ice.png",
    numberbg:"res/images/number_bg.png",
    rankbg:"res/images/rank_bg.png",
    ani1:"res/images/1.png",
    ani2:"res/images/2.png",
    ani3:"res/images/3.png",
    winbg:"res/images/win.png",
    losebg:"res/images/lose.png",
    sounderror:"res/sound/error.mp3",
    clickcell:"res/sound/dianji.mp3",
    jump:"res/sound/jump.mp3",
    clickice:"res/sound/clickice.mp3",
    frozen:"res/sound/frozen.mp3",
    lose:"res/sound/lose.mp3",
    start:"res/sound/start.mp3",
    win:"res/sound/win.mp3",
    aiHandle : "res/images/ai_handle.png",
    bgMusic:"res/sound/bg.mp3",
};
// 难度贴图
for (let index = 0; index < 6; index++) {
    res['difficulty'+index] = `res/images/Difficulty_${index}.png`;
}

var resources = [];
for (var i in res) {
    resources.push(res[i]);
}
window.GameUserInfo = window.GameUserInfo||{};
window.res = res;
GameUserInfo.score = 0;
GameUserInfo.roomScore =0;
GameUserInfo.ranks = {};
GameUserInfo.roomId = "";
GameUserInfo.uid ="";

